﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace NewHPDNWcfService.DAO
{
    public class DBHelperFactory
    {
        // I use Factory programming model here to provide
        // an instance of DBHelper class to help other module 
        // get access to database.
        public static DBHelper dbHelper;

        public static DBHelper getDBHelperInstance()
        {
            if (dbHelper == null)
            {
                dbHelper = new DBHelper();
            }
            return dbHelper;
        }
    }
}